package com.zhen.Mapper;

import com.zhen.User.Operate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OperateMapper {
    @Insert("insert into operate( name, time, classname, methodname, needtime) VALUES " +
            "(#{name},#{time},#{classname},#{methodname},#{needtime})")
    public int insert(Operate operate);
    @Select("select * from operate order by id desc limit #{begin},#{end}")
    public List<Operate> selectoperateAll(@Param("begin") Integer begin, @Param("end") Integer end);
    @Select("select count(*) from operate")
    public int selectcount();
}
